home *** CD-ROM | disk | FTP | other *** search
-
- Documentation for the iteration functions is a little scanty, and only
- a few exist:
-
- while (in the loops module)
- ----------
- (while pred forms...)
-
- Do forms while pred is true:
-
- (while (test x)
- (zap x))
-
- for (in the loops module)
- ----------
- (for init cond int body...)
-
- execute the init form, then while cond remains non-nil repeatedly
- execute the body, followed by the inc form:
-
- (for (setq i 0)
- (< i 10)
- (setq x (+ i 1))
- (wibble (vref zzz i)))
-
-
- member
- ----------
- (member x l pred)
-
- Test successive cars of l with predicate until predicate returns true.
- The remainder of the list is returned, or if no test succeeds, nil is
- returned.
-
- memq
- ----------
- (memq x l)
- Faster version of member, equiv to (member x l eq).
-
- assoc
- ----------
- (assoc x l p)
- Association list lookup using pred as predicate.
-
- assq
- ----------
- (assq x l)
- Equivalent to (assoc x l eq).
-